/**
 * This file is part of aion-lightning <aion-lightning.org>.
 * 
 * aion-lightning is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * aion-lightning is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with aion-lightning.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.aionlightning.chatserver.network.aion.clientpackets;

import org.jboss.netty.buffer.ChannelBuffer;
import com.aionlightning.chatserver.network.aion.AbstractClientPacket;
import com.aionlightning.chatserver.network.aion.serverpackets.SM_CHAT_INI;
import com.aionlightning.chatserver.network.netty.handler.ClientChannelHandler;
import com.aionlightning.chatserver.service.ChatService;

/**
 * @author ginho1
 */
public class CM_CHAT_INI extends AbstractClientPacket
{
	public CM_CHAT_INI(ChannelBuffer channelBuffer, ClientChannelHandler clientChannelHandler, ChatService chatService)
	{
		super(channelBuffer, clientChannelHandler, 0x30);
	}

	@Override
	protected void readImpl()
	{
		readC();
		readH();
		readD();
		readD();
		readD();
	}

	@Override
	protected void runImpl()
	{
		clientChannelHandler.sendPacket(new SM_CHAT_INI());
	}
}
